
    /**  
    * @Title: SocketIOConfig.java
    * @Package com.efast.cafe.commponent.es.socketio.properties
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2018年10月30日
    * @version V1.0  
    */
    
package com.efast.cafe.commponent.es.socketio.properties;

import java.io.Serializable;
import java.util.List;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
    * @ClassName: SocketIOConfig
    * @Description: websocket 配置参数
    * @author Administrator
    * @date 2018年10月30日
    *
    */
@ConditionalOnProperty(
        name="socketio.enable",
        havingValue="true"
)
@Component
@ConfigurationProperties(prefix = "socketio")
public class SocketIOConfig {

	private String host;
	private String port;
	private boolean useRedissonStore;
	private int pingInterval;
	private int pingTimeout;
	private int bossThreads;
	private int workerThreads;
	private List<String> eventPackages;
	private String instance;
	private SocketAlarm alarm;
	
	private boolean enableExceptionLog;
	
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public boolean isUseRedissonStore() {
		return useRedissonStore;
	}
	public void setUseRedissonStore(boolean useRedissonStore) {
		this.useRedissonStore = useRedissonStore;
	}
	public int getPingInterval() {
		return pingInterval;
	}
	public void setPingInterval(int pingInterval) {
		this.pingInterval = pingInterval;
	}
	public int getPingTimeout() {
		return pingTimeout;
	}
	public void setPingTimeout(int pingTimeout) {
		this.pingTimeout = pingTimeout;
	}
	public int getBossThreads() {
		return bossThreads;
	}
	public void setBossThreads(int bossThreads) {
		this.bossThreads = bossThreads;
	}
	public int getWorkerThreads() {
		return workerThreads;
	}
	public void setWorkerThreads(int workerThreads) {
		this.workerThreads = workerThreads;
	}
	public List<String> getEventPackages() {
		return eventPackages;
	}
	public void setEventPackages(List<String> eventPackages) {
		this.eventPackages = eventPackages;
	}
	public String getInstance() {
		return instance;
	}
	public void setInstance(String instance) {
		this.instance = instance;
	}
	
	
	public SocketAlarm getAlarm() {
		return alarm;
	}
	public void setAlarm(SocketAlarm alarm) {
		this.alarm = alarm;
	}
	public boolean isEnableExceptionLog() {
		return enableExceptionLog;
	}
	public void setEnableExceptionLog(boolean enableExceptionLog) {
		this.enableExceptionLog = enableExceptionLog;
	}
	
	

	
}
